package com.erp.itm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.erp.itm.dao.DeviceAmountDao;
import com.erp.itm.domain.DeviceAmountDO;
import com.erp.itm.service.DeviceAmountService;



@Service
public class DeviceAmountServiceImpl implements DeviceAmountService {
	@Autowired
	private DeviceAmountDao deviceAmountDao;
	
	@Override
	public DeviceAmountDO get(Long id){
		return deviceAmountDao.get(id);
	}
	
	@Override
	public List<DeviceAmountDO> list(Map<String, Object> map){
		return deviceAmountDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return deviceAmountDao.count(map);
	}
	
	@Override
	public int save(DeviceAmountDO deviceAmount){
		return deviceAmountDao.save(deviceAmount);
	}
	
	@Override
	public int update(DeviceAmountDO deviceAmount){
		return deviceAmountDao.update(deviceAmount);
	}
	
	@Override
	public int remove(Long id){
		return deviceAmountDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return deviceAmountDao.batchRemove(ids);
	}

    @Override
    public DeviceAmountDO getProjectId(Long projectId) {
		return deviceAmountDao.getProjectId(projectId);
    }

	@Override
	public int updatePurPrice(BigDecimal purPrice,Long id) {
		return deviceAmountDao.updatePurPrice(purPrice,id);
	}


	@Override
	public int updatePurPriceByoutlay(BigDecimal purPrice,Long id) {
		return deviceAmountDao.updatePurPriceByoutlay(purPrice,id);
	}

	@Override
	public int updatePurPriceByonPur(BigDecimal purPrice, Long id) {
		return deviceAmountDao.updatePurPriceByonPur(purPrice,id);
	}

	@Override
	public int updatePurPriceByother(BigDecimal purPrice, Long id) {
		return deviceAmountDao.updatePurPriceByother(purPrice,id);
	}

}
